﻿using HandyControl.Tools.Command;
using Prism.Commands;
using Prism.Regions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace wms_wpf.ViewModels
{
    public class MainWindowModel
    {
        public MainWindowModel(IRegionManager regionManager)
        {
            OpenPageCommand = new DelegateCommand<string>(OpenPage);
             _regionManager = regionManager;
        }

        public DelegateCommand<string> OpenPageCommand { get; set; }
        private readonly IRegionManager _regionManager;


        private void OpenPage( string obj)
        {

            _regionManager.RequestNavigate("MainContent", obj);
        }
    }
}
